<script setup lang="ts">
//引入用户相关的仓库，获取当前用户的头像和昵称
import useUserStore from '@/store/modules/user';
//引入时间
import { getTime } from '@/utils/time';
//获取存储用户信息的仓库对象
let userStore = useUserStore()
</script>

<template>
    <el-card>
        <div class="box">
            <img :src="userStore.avatar" alt="" class="avatar">
            <div class="bottom">
                <h3 class="title">{{ getTime() }}好呀 {{ userStore.username }}</h3>
                <p class="subtitle">硅谷甄选运营平台</p>
            </div>
        </div>
    </el-card>
    <div class="bottom2">
        <svg-icon name="welcome" width="800px" height="600px"></svg-icon>
    </div>
</template>

<style scoped lang="scss">
.box {
    display: flex;

    .avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .title {
        font-size: 30px;
        font-weight: 900;
        margin-bottom: 30px;
        margin-top: 10px;
    }

    .subtitle {
        font-style: italic;
        color: aqua;
    }
}
.bottom2{
    
    display: flex;
    justify-content: center;
}
</style>